/* ----------------------------------------------------------------------
 * File: 		parser.h
 * Created by:		Taylor Wood
 * Email:		Tdwood2@asu.edu
 * Student ID:		1202553801
 *
 * Description:
 * Header file for the parser.
 * ----------------------------------------------------------------------*/
#ifndef _PARSER_H_
#define _PARSER_H_

#include "token.h"
#include <fstream>

void isProgram(char *);
int isId(token *);
int isDvarGlobal();
int isDmethod();
int isType(token *);
int isDvarLocal();
int isParam();
int isLine();
int isIf();
int isElse();
int isWhile();
int isAssign();
int isReturn();
int isCallFunction();
int isExprlog();
int isOpand();
int isOpno();
int isExprel();
int isExpr();
int isProduct();
int isSign();
int isTerm();
void errorFix();

#endif
